#ifndef MAPFILEREADER_H
#define MAPFILEREADER_H

#include <fstream>
#include <string>
#include <vector>
#include <iostream>

#include "globals.h"

class MapFileReader
{
public:
	// takes a file made by this class.
	MapFileReader( const char* mapFileIn );
	//destructor
	~MapFileReader();

	// returns the vector with the name of files
	// from the text file passed.
	std::vector<std::string> getTileImageNamesVector(){ return tVec; }
	std::vector<std::string> getMapInformationVector(){ return mVec; }
	std::string **getMapArray(){ return mArray; }	
	const char* isNewLine(){ return "*0*"; }
private:
	void parseText();
	void parseTextLines();
	std::string **mArray;
	const char* mFile;
	//holds the vector of images i.e "0 = black.png 1 = blue.png 2 = ..."
	std::vector<std::string> tVec;
	std::vector<std::string> mVec;
};

#endif